package com.asset.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.asset.manage.mapper.ClassifyMapper;
import com.asset.manage.domain.Classify;
import com.asset.manage.service.IClassifyService;

/**
 * 资产分类Service业务层处理
 * 
 * @author mobin
 * @date 2024-08-24
 */
@Service
public class ClassifyServiceImpl implements IClassifyService 
{
    @Autowired
    private ClassifyMapper classifyMapper;

    /**
     * 查询资产分类
     * 
     * @param id 资产分类主键
     * @return 资产分类
     */
    @Override
    public Classify selectClassifyById(Long id)
    {
        return classifyMapper.selectClassifyById(id);
    }

    /**
     * 查询资产分类列表
     * 
     * @param classify 资产分类
     * @return 资产分类
     */
    @Override
    public List<Classify> selectClassifyList(Classify classify)
    {
        return classifyMapper.selectClassifyList(classify);
    }

    /**
     * 新增资产分类
     * 
     * @param classify 资产分类
     * @return 结果
     */
    @Override
    public int insertClassify(Classify classify)
    {
        return classifyMapper.insertClassify(classify);
    }

    /**
     * 修改资产分类
     * 
     * @param classify 资产分类
     * @return 结果
     */
    @Override
    public int updateClassify(Classify classify)
    {
        return classifyMapper.updateClassify(classify);
    }

    /**
     * 批量删除资产分类
     * 
     * @param ids 需要删除的资产分类主键
     * @return 结果
     */
    @Override
    public int deleteClassifyByIds(Long[] ids)
    {
        return classifyMapper.deleteClassifyByIds(ids);
    }

    /**
     * 删除资产分类信息
     * 
     * @param id 资产分类主键
     * @return 结果
     */
    @Override
    public int deleteClassifyById(Long id)
    {
        return classifyMapper.deleteClassifyById(id);
    }
}
